package com.sharer.last.model.dto.blog;

import com.sharer.last.base.model.BaseDTO;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * 博客可见性DTO
 *
 * @ClassName BlogVisibilityDTO
 * @Author wangjin
 * @Date 2023/5/5 20:28
 * @Description
 * @Version 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
public class BlogVisibilityDTO extends BaseDTO {
    @NotNull(message = "id不能为空")
    private Long id;
    /**
     * 公开或私密 1:公开的 2：私有的 3:密码保护
     */
    private Integer showPermission;

    /**
     * 推荐开关
     */
    private Integer isRecommend;

    /**
     * 赞赏开关
     */
    private Integer isAppreciation;

    /**
     * 评论开关
     */
    private Integer isCommentEnabled;

    /**
     * 是否置顶
     */
    private Integer isTop;


    /**
     * 密码保护
     */
    private String password;
}
